<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/6/6
 * Time: 15:49
 */

namespace common\commands;

use yii\helpers\Json;

class Controller extends \yii\web\Controller{
    public $userID = 1;

    public function jsonOut($status, $data, $message){
        $data = array(
            'status' => $status,
            'data'   => $data,
            'message'=> $message,
        );
        return Json::encode($data);
    }
}